package com.violet.repository.repository.kotlin.data.source

import com.violet.repository.network.ApiServices
import com.violet.repository.repository.kotlin.data.CommDataSource
import io.reactivex.rxjava3.core.Observable
import javax.inject.Inject

class CommRepository @Inject constructor() : CommDataSource {

    @Inject
    lateinit var mApiServices: ApiServices

    override fun getUser(): Observable<String> {
        return mApiServices.getString()
    }

    override suspend fun launchUser() = mApiServices.getMore()

    override suspend fun login(md5: String) = mApiServices.getMore()

}